package com.example.comment.base.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author QingZeyu
 * @date 2024/4/30 18:00
 */
@Data
public class CommentAddDTO implements Serializable {
    /** 评论id */
    @ApiModelProperty(value = "评论id")
    private Long commentId;

    /** 关联id */
    @ApiModelProperty(value = "关联id")
    @NotNull(message = "请填写关联id")
    private Long referenceId;
    /** 用户id */
    @ApiModelProperty(value = "用户id")
    @NotNull(message = "请填写用户id！")
    private Long userId;
    /** 回复用户id */
    @ApiModelProperty(value = "回复用户id")
    private Long toUserId;
    /** 评论内容 */
    @ApiModelProperty(value = "评论内容")
    @NotBlank(message = "请填写评论！")
    private String content;
    /** 图片链接 */
    @ApiModelProperty(value = "图片链接")
    private String pictureUrl;
    /** 评论类型 */
    @ApiModelProperty(value = "评论类型")
    @NotBlank(message = "请填写评论类型！")
    private String type;
}
